FROM nginx:alpine
# 从指定位置复制自定义的nginx.conf文件
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
# 将第一阶段构建的dist文件夹复制到Nginx的html目录下
COPY ./dist /usr/share/nginx/html
# 暴露80端口
EXPOSE 12000
# 启动Nginx
CMD ["nginx", "-g", "daemon off;"]
